<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>预约信息</title>
		<script src="/js/jquery-3.2.1.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="/js/bootstrap-3.3.7-dist/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="/css/appointment.css"/>
		<script src="/js/bootstrap-3.3.7-dist/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		
		<div class="container-fluid">
			<div  class="bgcHeader col-lg-12">
				<div class="col-lg-12 headerWidth">
					<h1 class="text-center text-black part1-textSet ">预约信息</h1>
				</div>
			</div>
			<!-- 预约信息表 -->
			<table class="table table-bordered">
				<tr>
					<th>预约id</th>
					<th>科室</th>
<!--					<th>医生</th>-->
					<th>姓名</th>
					<th>电话</th>
					<th>时间</th>
					<th>具体情况</th>
					<th>操作</th>
				</tr>
				<tr th:each="appointment,status:${session.appointments}">

					<td th:text="${status.index+1}" >1</td>
					<td th:text="${appointment.subjectName}">神经病</td>
<!--					<td th:text="${appointment.doctorName}">小李</td>-->
					<td th:text="${appointment.appointmentName}">小戎</td>
					<td th:text="${appointment.appointmentTel}">11155599974</td>
					<td th:text="${appointment.appointmentDate}">2021-12-28</td>
					<td th:text="${appointment.appointmentIllness}">11155599974</td>
					<td>
                        <!--		确认的话,账户会收到预约码			       -->
						<a href="@{/notarize(appointmentId=${appointment.appointmentId})}">确认</a>
						<!--		取消的话,需要填写原因，账户会收到拒绝的原因以及预约失败提示			       -->
						<a href="@{/cancel(appointmentId=${appointment.appointmentId})">取消</a>
					</td>
				</tr>
			</table>
			<!-- 分页 -->
			<div class="pages">
				<ul class="pagination pagination-lg" th:each="intOne,status:${session.ints}">
				    <li><a th:href="@{/queryByPage(page=${status.index + 1})}" th:text="${status.index + 1}">1</a></li>
				</ul><br>
			</div>
		</div>
	</body>
</html>
